Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/spawn with interfacer #1464

Merged

Conversation

shuds13
Copy link
Member

@shuds13 shuds13 commented Nov 11, 2024

This branch makes the Optimas/APOSMM example work with spawn, as well as fork.

I have removed the extra comm created with the multiprocessing server queues and instead am using the QCommProcess
directly. I have not tried with a thread as yet, but it works with a process.

Spawn still failed due to a threadlock on the executor comm attribute (which is added in worker.py). This would be the wrong comm anyway when passing to the APOSMM process. Removing this enables spawn to work.

Some attention needs to be paid to passing the executor, to ensure this works both when actually used in the gen and when no executor exists.

@shuds13 shuds13 requested a review from jlnav November 14, 2024 18:10
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 78.76%. Comparing base (4b812d6) to head (c323ef8).
Report is 38 commits behind head on experimental/jlnav_plus_shuds_asktell.

Files with missing lines Patch % Lines
libensemble/generators.py 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@                            Coverage Diff                            @@
##           experimental/jlnav_plus_shuds_asktell    #1464      +/-   ##
=========================================================================
+ Coverage                                  78.75%   78.76%   +0.01%     
=========================================================================
  Files                                         81       81              
  Lines                                       8076     8072       -4     
  Branches                                    1422     1196     -226     
=========================================================================
- Hits                                        6360     6358       -2     
- Misses                                      1502     1504       +2     
+ Partials                                     214      210       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shuds13 shuds13 merged commit e8b7052 into experimental/jlnav_plus_shuds_asktell Nov 14, 2024
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants